package com.ccsoft.broadcast;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;

import java.util.Objects;

public class MyBroadcastReceiver extends BroadcastReceiver {
    private static final String TAG = "chanchaw";

    @Override
    public void onReceive(Context context, Intent intent) {
        Log.i(TAG,"接收到自定义广播了！");
//        Log.i(TAG,context.toString());
//        String msg = intent.getStringExtra("msg");
//        Log.i(TAG,"接收到了广播消息！");
//
//        if(Objects.equals(intent.getAction(), "CCJJQ"))
//            Log.i(TAG,"是预定的广播！");
    }
}
